﻿using System;
using System.Web;
using System.Data;
using SharedLibraries;
using SharedLibraries.Constants;
using EntityObject;
using DataAccessObject;
using ThangNM_LIB.DB;
using ThangNM_LIB.FUNC;

namespace ThangNM.Admin
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if ((new ShareDAO.UserDAO()).SelectBy_sPermission(Session["secret"], Convert.ToString(Request.Url.AbsolutePath), ConstEx.funcButtonToolBar.MAIN) == false)
                {
                    pnlMain.Visible = false;
                    Commons.setAccessDenied(Page, MsgUC1);
                    return;
                }
            }
        }
    }
}